﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;

namespace NetFrameworkExtensions.BusinessLayer
{
  public interface IBusinessList :
    IBusinessBase,
    IEnumerable
  {
    object AddNew();
  }

  public interface IBusinessList<TEntity, TIdentified, TIdentifier> :
    IBusinessList,
    IEnumerable<TIdentified>
    where TEntity : class, IIdentified<TIdentified, TIdentifier>
    where TIdentified : class, IBusinessObject<TEntity, TIdentified, TIdentifier>
    where TIdentifier : IEquatable<TIdentifier>
  {
    new TIdentified AddNew();
  }

}
